package jupiter.servlets;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import jupiter.util.Application;
import jupiter.util.EventSubscriber;


public class UserServlet extends HttpServlet {
	static public EventSubscriber subscriber = new EventSubscriber();
	public void service(HttpServletRequest req, HttpServletResponse res) throws java.io.IOException {
		
		if(Application.isJabbifyNode()) {
			RequestHandler.sendResult(req, res, "You are accessing the nodelist");
			return;
		}
		//System.out.println(req.getParameter("data"));
		//we should make sure we are only handling the right type of messages
		RequestHandler.service(req, res, subscriber);
		
	}

	
}
